<?php

class sfContactPluginRouting
{
  /**
   * Listens to the routing.load_configuration event.
   *
   * @param sfEvent An sfEvent instance
   */
  static public function listenToRoutingLoadConfigurationEvent(sfEvent $event)
  {
    $r = $event->getSubject();
    
    // preprend our routes
    $r->prependRoute('sf_contact_plugin_form', new sfRoute('/contact', array('module' => 'sfContactForm', 'action' => 'index')));
    $r->prependRoute('sf_contact_plugin_send', new sfRoute('/contact/send', array('module' => 'sfContactForm', 'action' => 'send')));
  }
}

?>
